package cn.hl.sentinel;

import cn.hl.domain.User;
import cn.hl.dto.MovieTicketDto;
import cn.hl.enums.GlobalExceptionCode;
import cn.hl.query.UserQuery;
import cn.hl.result.JSONResult;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

public class UserFallBack {

    public static JSONResult saveOrUpdate(@RequestBody User user){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult delete(@PathVariable("id") Long id){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult get(@PathVariable("id")Long id){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult list(){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult page(@RequestBody UserQuery query){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult findAllMovieTicket(){
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult buyMovieTicketById(@RequestBody MovieTicketDto movieTicketDto, User user) {
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }

    public static JSONResult findMovieTicketByUserId(@PathVariable("id") Long id) {
        return JSONResult.error(GlobalExceptionCode.SERVICE_DEMOTE);
    }
}
